package cursojava.format;

public class EjmApi {
	

	
	
	
	public static double promedio(double... notas) {
		
		int cont = 0;
		double suma = 0.0;
		for (double d : notas) {
			suma+= d;
			cont++;
		}
		
		return suma/cont;
	} 
	

}
